import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/Login'
import Register from '../views/Register'
import Index from '../views/Index'
import CreatTeam from '../views/CreatTeam'
import JoinTeam from '../views/JoinTeam'
import Main from '../views/Main'
import Blog from '../views/Blog'
import AboutUs from '../views/AboutUs'

Vue.use(VueRouter)

const routes = [
  {
    name: 'a',
    path: '/',
    redirect: '/index'
  },
  {
    name: 'index',
    path: '/login',
    component: Login
  },
  {
    name: 'index',
    path: '/register',
    component: Register
  },
  {
    name: 'index',
    path: '/index',
    component: Index
  },
  {
    path: '/creatteam',
    component: CreatTeam
  },
  {
    path: '/jointeam',
    component: JoinTeam
  },
  {
    path: '/main',
    component: Main
  },
  {
    path: '/blogs',
    component: Blog
  },
  {
    path: '/aboutus',
    component: AboutUs
  }
]

const router = new VueRouter({
  routes
})

export default router
